<template>
  <el-form-item label="购买发数">
    <el-input
      v-model="form2.buy_num"
      style="width: 600px"
      type="number"
    ></el-input>
  </el-form-item>
  <el-form-item label="赠送发数">
    <el-input
      v-model="form2.present_num"
      style="width: 600px"
      type="number"
    ></el-input>
  </el-form-item>
</template>
          
<script>
// 买N送N
export default {
  props: {
    form: {
      type: Object,
    },
  },
  name: "Present",
  data() {
    return {
      form2: this.form,
    };
  },
  form2: {
    handler(newVal) {
      this.$emit("updateComponet", { type: "one", value: newVal });
    },
  },
};
</script>